<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="theme/style.css"
	media="screen" />
<title>OES - Activating users</title>
<script language="javascript">
	function emailIDfocus() 
	{
		document.fm.userName.focus();
	}

	function check() 
	{
		var user,actCode, email;
		user = document.fm.userName.value;
		actCode = document.fm.activationCode.value;
		email = document.fm.emailID.value;

		if (user.length < 1) 
		{
			alert("You must enter User Name.");
			document.fm.user.focus();
			return false;
		}else if (email.length < 1) 
		{
			alert("You must enter email id.");
			document.fm.emailID.focus();
			return false;
		} else if (actCode.length < 1) 
		{
			alert("You must enter activation code.");
			document.fm.activationCode.focus();
			return false;
		}
		return true;
	}
</script>
</head>
<body onload="emailIDfocus()">
	<div id="MainWrapper">
		<jsp:include page="header.jsp" /> 
		<jsp:include page="LeftContainer.jsp" />
		<div id="MainContent">
		<center>
			<h2>User Activation</h2>
			<form action="UserActivation.do" method="post" name="fm" onsubmit="return check()">
				<table>
					<tr><td>User Name: </td><td><input type="text" name="userName"/></td></tr>
					<tr><td>Email Id: </td><td><input type="text" name="emailID"/></td></tr>
					<tr><td>Activation Code: </td><td><input type="password" name="activationCode"/></td></tr>
					<tr><td></td><td><input type="submit" name="submit" value="Submit"/></td></tr>
				</table>
			</form>
		</center>
		</div>
		<jsp:include page="footer.jsp" />
	</div>
</body>
</html>